import Vue from 'vue'
import Vuex from 'vuex'
import {DECREMENT, INCREMENT} from "./mutations-type";
import getters from "./getters";
import actions from "./actions";
import mutations from "./mutations";
import modulesA from "./modulesA";

Vue.use(Vuex);

const store = new Vuex.Store({
  state: {
    number: 1000,
    student: [
      {name: 'yang', age: 18, height: 188},
      {name: 'hai', age: 8, height: 148},
      {name: 'wen', age: 28, height: 200},
      {name: 'shuai', age: 33, height: 158},
    ],
    info: {
      name: 'baby',
      age: 1,
      height: 60
    }
  },
  mutations: mutations,
  actions: actions,
  getters:getters,
  modules: {
    a: modulesA
  }
})

export default store
